#include "Log.h"
#include <iostream>
#include <string>

using std::string;
void Log::init(string TAG)
{
    openlog(TAG.c_str(), LOG_CONS | LOG_PID,LOG_USER);
}

void Log::close(){
    closelog();
}

void Log::d(string tag, string info)
{
    syslog(LOG_INFO, "%s", info.c_str());
}

void Log::e(string tag, string info)
{
    syslog(LOG_ERR, "%s", info.c_str());
}


